<template>
    <el-config-provider :locale="zhCn">
        <router-view></router-view>
    </el-config-provider>
</template>

<script lang='ts' setup>
//element plus中文包
import zhCn from "element-plus/lib/locale/lang/zh-cn"
import { nextTick, onMounted } from 'vue';
import { useSetting } from './pinia/setting';
const SettingStore = useSetting()
onMounted(() => {
    // 设置主题
    SettingStore.setCollapse(SettingStore.isCollapse)
    SettingStore.setTheme(SettingStore.theme)
})
nextTick(() => {
    SettingStore.setDark()
})

</script>

<style></style>